package com.example.warehousems.event.event;

import com.example.warehousems.dao.model.JobTicket;
import com.example.warehousems.dao.model.Storage;
import org.springframework.context.ApplicationEvent;

public class JobTicketEvent extends ApplicationEvent {
    Integer arrivalUserId;
    JobTicket jobTicket;
    String title;
    String description;

    public JobTicketEvent(Integer arrivalUserId, JobTicket jobTicket, String title, String description) {
        super(jobTicket);
        this.arrivalUserId = arrivalUserId;
        this.jobTicket = jobTicket;
        this.title = title;
        this.description = description;
    }

    public Integer getArrivalUserId() {
        return arrivalUserId;
    }

    public void setArrivalUserId(Integer arrivalUserId) {
        this.arrivalUserId = arrivalUserId;
    }

    public JobTicket getJobTicket() {
        return jobTicket;
    }

    public void setJobTicket(JobTicket jobTicket) {
        this.jobTicket = jobTicket;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "JobTicketEvent{" +
                "jobTicket=" + jobTicket +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
